
using Calculator.Xroad.Eu;
using Calculator.Xroad.Eu.Headers;
using Calculator.Xroad.Eu.Messages;
using Xtee.Core.Envelope;
using Xtee.Core.Envelope.Header;
using Xtee.XteeAdapter.Calculator;

namespace Server.Services
{
    public class ServiceSubtract : SubtractServiceHandler
    {
        public SubtractResponse ProcessRequest(SubtractRequest input, SubtractInputHeader header)
        {
            return new SubtractResponse(input.Request, new Result(input.Request.VarX - input.Request.VarY));
        }
    }
}
